<!--boostrap modal -->
<div class="modal fade bs-example-modal-sm" tabindex="-1" id="myModal" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content" style="z-index: 1050">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">按钮编辑</h4>
        </div>
        <div class="modal-body">
            <form class="form-edit" id="form-edit">
                <div class="input-group">
                    <div class="input-group-addon">编号</div>
                    <input type="text" class="form-control param" name="code" desc="按钮编号" mast="1" value="{$data.code|default=''}" placeholder="按钮编号"/>
                </div>
                <div class="input-group">
                    <div class="input-group-addon">名称</div>
                    <input type="text" class="form-control param" name="name" desc="按钮名称" mast="1" value="{$data.name|default=''}" placeholder="按钮名称"/>
                </div>
                <div class="input-group">
                    <div class="input-group-addon">排序</div>
                    <input type="number" class="form-control param" name="sort" desc="排序顺序" mast="1" value="{$data.sort|default=''}" placeholder="排序顺序"/>
                </div>
                <div class="input-group">
                    <div class="input-group-addon">状态</div>
                    <div class="input-status">
                        <label class="radio-inline">
                            <input type="radio" class="status param" <?php if(empty($data) || $data['status']==1) echo "checked='checked'"?> name="status" value="1"/>启用
                        </label>
                        <label class="radio-inline">
                            <input type="radio"  class="status param" <?php if(!empty($data) && $data['status']==0) echo "checked='checked'"?> name="status" value="0" />停用
                        </label>
                    </div>
                </div>
                <div class="input-group">
                    <div class="input-group-addon">图标</div>
                    <input class="form-control param" name="icon" value="{$data.icon|default=''}" placeholder="图标"/>
                </div>
                <input type="hidden" name="id" class="param" value="{$data.id|default=''}" id="modal-id"/>
            </form>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" id="btn-save" class="btn btn-primary">保存</button>
        </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<include file="Public:edit"/>